package com.baidu.day03;

import java.io.File;

public class Demo02 {
    public static void main(String[] args) {
        File file = new File("");
        deleteALL(file);
        file.delete();

    }
    public static void deleteALL(File file){
            File [] files = file.listFiles();
            for (File f : files) {
                if(f.isDirectory()){
                    deleteALL(f);
                }
                f.delete();
            }
    }

}
